package model;

public class Drug {
	private String name;
	private double unitPrKgPrDayLight; // factor to be used if weight of
										// patient < 25 kg
	private double unitPrKgPrDayNormal;// factor to be used if 25 kg <= weight
										// of patient <= 120 kg
	private double unitPrKgPrDayHeavy; // factor to be used if weight of
										// patient > 120 kg
	private String unit;

	public Drug(String name, double unitPrKgPrDayLight,
			double unitPrKgPrDayNormal, double unitPrKgPrDayHeavy, String unit) {
		this.name = name;
		// ......from teacher......error
		// this.unitPrKgPrDayLight = unitPrKgPrDayNormal;
		// this.unitPrKgPrDayNormal = unitPrKgPrDayHeavy;
		// this.unitPrKgPrDayHeavy = unitPrKgPrDayHeavy;

		this.unitPrKgPrDayLight = unitPrKgPrDayLight;
		this.unitPrKgPrDayNormal = unitPrKgPrDayNormal;
		this.unitPrKgPrDayHeavy = unitPrKgPrDayHeavy;
		this.unit = unit;
	}

	public String getUnit() {
		return unit;
	}

	public String getName() {
		return name;
	}

	public double getUnitPrKgPrDayLight() {
		return unitPrKgPrDayLight;
	}

	public double getUnitPrKgPrDayNormal() {
		return unitPrKgPrDayNormal;
	}

	public double getUnitPrKgPrDayHeavy() {
		return unitPrKgPrDayHeavy;
	}

	public String toString() {
		return name;
	}
}
